<?= $this->Html->css('print.css', null, array('inline'=>false, 'media'=>'print')) ?>
<div class="no-print right">
    <button onclick="window.print()" type="submit">Štampa</button>
</div>

<h1 style="margin-top:0">
    <?= $locations[$filter['location_id']] ?>, 
    <?= date_local($filter['start']) ?> - 
    <?= date_local($filter['end']) ?>
</h1>


<?= $this->element('../Reports/_location_occupation') ?>

<script type="text/javascript">
function isPrint(form) {
    var form = $(form);
    var chk  = form.find('input[type=checkbox]');
    if(chk[0].checked){
        form.attr('target', '_blank');
    } else {
        form.attr('target', null);
    }
}
</script>
